package com.mlody.chapter1;

import com.mlody.chapter1.interfaces.FlyRocketPower;

/**
 * Created by tmlod_000 on 2014-07-27.
 */
public class Main {
    public static void main (String [] args){
        Duck d= new ModelDuck();
        d.performFly();
        d.performQuack();
        d.setFlyBehavior(new FlyRocketPower());
        d.performFly();
    }
}
